home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-09-06 | 4.0 KB | 168 lines | [TEXT/CWIE] |
- // DDocData -- data class for Gadgets
-
- #pragma once
-
- #include "AMSignaler.h"
-
-
- const long idTriangle = 'Trie';
- const long idLeftRight = 'Left';
- const long idRadios = 'Rads';
- const long idBars = 'Bars';
- const long idStandard2 = 'Sta2';
- const long idGraphic = 'Grac';
- const long idSlider = 'Slir';
- const long idTickMarks = 'Tics';
- const long idNonDirectional = 'Nonl';
- const long idLittleArrows = 'Lits';
- const long idSpinner = 'Spir';
- const long idVolumeControl = 'Voll';
- const long idJimSSlider = 'Jimr';
- const long idStandard3 = 'Sta3';
- const long idIndeterminate = 'Inde';
- const long idChasingArrows = 'Chas';
- const long idRectangle = 'Rece';
- const long idRoundRect = 'Rout';
- const long idBarberPole = 'Bare';
- const long idRoundBarber = 'Rour';
- const long idSmall = 'Smal';
- const long idLarge = 'Lare';
- const long idX12345 = 'X145';
- const long idX12345e6 = 'X126';
- const long idPassword = 'Pasd';
- const long idDate = 'Date';
- const long idTime = 'Time';
- const long idStyled = 'Styd';
-
- class AMEngine;
-
- //----------
- class DDocData : public AMSignaler {
- public:
- DDocData ();
- virtual ~DDocData ();
-
- public:
- void ReadFromFile (AMEngine* engine);
- void WriteToFile (AMEngine* engine);
-
- public:
- Boolean GetTriangle () const;
- void SetTriangle (Boolean inValue);
-
- Boolean GetLeftRight () const;
- void SetLeftRight (Boolean inValue);
-
- SInt16 GetRadios () const;
- void SetRadios (SInt16 inValue);
-
- UInt16 GetBars () const;
- void SetBars (UInt16 inValue);
-
- SInt16 GetStandard2 () const;
- void SetStandard2 (SInt16 inValue);
-
- SInt16 GetGraphic () const;
- void SetGraphic (SInt16 inValue);
-
- SInt16 GetSlider () const;
- void SetSlider (SInt16 inValue);
-
- SInt16 GetTickMarks () const;
- void SetTickMarks (SInt16 inValue);
-
- SInt16 GetNonDirectional () const;
- void SetNonDirectional (SInt16 inValue);
-
- SInt16 GetLittleArrows () const;
- void SetLittleArrows (SInt16 inValue);
-
- SInt16 GetSpinner () const;
- void SetSpinner (SInt16 inValue);
-
- SInt16 GetVolumeControl () const;
- void SetVolumeControl (SInt16 inValue);
-
- SInt16 GetJimSSlider () const;
- void SetJimSSlider (SInt16 inValue);
-
- SInt16 GetStandard3 () const;
- void SetStandard3 (SInt16 inValue);
-
- SInt16 GetIndeterminate () const;
- void SetIndeterminate (SInt16 inValue);
-
- SInt16 GetChasingArrows () const;
- void SetChasingArrows (SInt16 inValue);
-
- SInt16 GetRectangle () const;
- void SetRectangle (SInt16 inValue);
-
- SInt16 GetRoundRect () const;
- void SetRoundRect (SInt16 inValue);
-
- SInt16 GetBarberPole () const;
- void SetBarberPole (SInt16 inValue);
-
- SInt16 GetRoundBarber () const;
- void SetRoundBarber (SInt16 inValue);
-
- StringPtr GetSmall (Str255 outStr = nil) const;
- void SetSmall (Str255 inValue);
- void SetSmall (CharsHandle inValue);
-
- StringPtr GetLarge (Str255 outStr = nil) const;
- void SetLarge (Str255 inValue);
- void SetLarge (CharsHandle inValue);
-
- SInt32 GetX12345 () const;
- void SetX12345 (SInt32 inValue);
-
- double GetX12345e6 () const;
- void SetX12345e6 (double inValue);
-
- StringPtr GetPassword (Str255 outStr = nil) const;
- void SetPassword (Str255 inValue);
- void SetPassword (CharsHandle inValue);
-
- LongDateRec GetDate () const;
- void SetDate (LongDateRec inValue);
-
- LongDateRec GetTime () const;
- void SetTime (LongDateRec inValue);
-
- StringPtr GetStyled (Str255 outStr = nil) const;
- void SetStyled (Str255 inValue);
- void SetStyled (CharsHandle inValue);
-
- protected:
- Boolean mTriangle;
- Boolean mLeftRight;
- SInt16 mRadios;
- UInt16 mBars;
- SInt16 mStandard2;
- SInt16 mGraphic;
- SInt16 mSlider;
- SInt16 mTickMarks;
- SInt16 mNonDirectional;
- SInt16 mLittleArrows;
- SInt16 mSpinner;
- SInt16 mVolumeControl;
- SInt16 mJimSSlider;
- SInt16 mStandard3;
- SInt16 mIndeterminate;
- SInt16 mChasingArrows;
- SInt16 mRectangle;
- SInt16 mRoundRect;
- SInt16 mBarberPole;
- SInt16 mRoundBarber;
- Str255 mSmall;
- Str255 mLarge;
- SInt32 mX12345;
- double mX12345e6;
- Str255 mPassword;
- LongDateRec mDate;
- LongDateRec mTime;
- Str255 mStyled;
- };
-